fixed bug related to absolute value, which resulted in E=1 in RR