fix bug with jumping to zero point