wrong condition for missing images