Fixing Pins Errors