fixed bug in didrotate delegate call