fix bug for add photo