small fix needed for database/grid usage