skeleton: Fix incorrect angle determination.