fixed bugs ricpotrf & ip2