Bug fix: when y=0 all the time