Fixed pins controller bug