Fixed pinInput bug