IDE-1179

Fix refreshing the project.