fix undefined img