fix synchronized on field getting updated