fix bugs on handling synchronized
fix bugs on handling synchronized