fix angle bugs