Fixes database returning None.