fix for remove method if object not exists in db