Fixed the bug for real. The variables were being hidden by parameters