fixed fatal error ( phRETS )