Fix errors reported by frosted in tests

f is clearly used in this line.