Update Controller.php

Fixing error