Fixed broken check for minimum angle