Fix bug with redirect after upload photo