fixed synchonized bug