fix Photo model and other