Fix for f not passing correctly