Bugfix

Y1 Y2 not correctly calculated