Fixed portset offset assigning to prevent segfault on pin type error checking.