Fixed bug with photos at end with manual input.