- Fix bug on database with null values.