After the rain stopped and the waters had receded for several months, Noah opened the window of the ark and sent out the raven. According to at least one commentator, Noah drove the raven from the ark because it had violated the ban and thus had no right to remain in the ark.67 As soon as he waters receded a bit leaving the raven enough space to fly about, Noah banished it from the ark.8
Source:Selfish as a Raven - Inner Stream - Parsha
Is the underlined part grammatically correct?
I'd put a comma after "a bit".