Fixed errors in OwnProject due to refactoring