fix corner case problem when i modify janus core code