Fixes a fatal function definition error