Fixed issues with pause and repetitions

Problems were:
* the end of the repetition starts with pause
* the song starts with a bar