Fix photoDao close bug.