fix errors that occurred after non-null fields annotations also affect database schema