Fixed error in RAP