Fix pass null elements