fixed bug: editing project ended in an sql exception.