Solves an error on DBAdapter getOne method