fixed photos controller error