Fixed function call error