fix bug with check photo