small tweak to fix error on photo upload