Fixed bug in angle tool