wrong size allocated on commit hooks