remove needless null