fixed global sync(?)