fix errors of edit pics