fixed error message for empty main