Got rid of constant Integer.MIN_VALUE. Used null instead.