bugfix: The pin indexing was one off