Fix not pd problem for f