Fix bug: not testing max_angular_pos properly