Fixed problem with some pin ops