fixed potential null pointer when creating a new lns