Fixed bug in start rule calculation