Fix negative angles generating