fixed bug in percent relative error calculations