fix bug for no sub