Fixed a bug with performance in big projects.