heap corr

Signed-off-by: aLekSer <gdocse@gmail.com>