Fixed hash function bug for procedure table and variable table