fix bug prise photo