fixed previous photo bug