Fixed function not found error