Corrected heap table