fixed: spaces in gallery names doesn't work

with single image
+ fixed: typo in error msg getter