std: fix overflow of HashMap's capacity