Fixing bug in FileDB handler