Fix for Chrome FS gallery bug