Fixed function error that was thrown.