Fixed Bug 12, 13 and 15

Flow priority has changed