Fixed a bug in angle directions.