Removes null references