VIZRTSAAS-200: Fixed spelling error, passing the function parameter instead of the global variable $f