Fixed project editing bugs