Fixed Sync and some bugs.
Fixed video sync.