fixed issue with synchronize