Rectified error in Pins Controller