euler errors fixed