Syntax fix, hashpersec calculation fix