Fixed a possible syncronization issue.