Fixes program crash caused by angle.