Fix access to angles[0].