fix bug when loading pic error