fixed runtime after end of photos