small fix to heap