Fixing y axis computation