Fixed reading negative numbers