tentando resolver o onError