Fixed reserve -> resize. Thanks @xunzheng