correct possible error when not generate thumb