fixed int to string errors for pinhash