fixing findbugs sychronization issue