photo dao fix