fix update photo bug