Fix bug in audio cursor and drawing of frame