Agent rotation fix

fixing agent rotation