Replace -2 with constant