fixed pins controller error copied from omr site