Fixed error in Pins Contorller