Fix bug in project synchronization