fixed bug that caused error when photo did not have caption