fixed bug with pin controller file