fix undefeined subject