Fixed bug on pins controller file