Replace -1 with NULL