Fixes sync bug + semicolon warning