Fixing bug occurred on very first run (with clean redid db).