Fix bug with file adding to project