fix start rule calculation if it wasnt defined