The fix is to replace the entire gallery directory which I did. However I restored all the old gallery files because I had customized several of the galleries using the css and sizing in the JS and things were not looking good. Is it OK to just replace the java scripts that are in the galleries folder and leave the css and php files ? or do I need to replace all the files in the gallery folder and re-do the customizing.