Fixed a bug with adding new controls.
Fixed a bug with project generation.