Bugs solved! These bugs used to produce problems when you were generating the database.