fix for #338 that causes "databaseName must be a string" error