prf bug fixing