Fixes an error with the readOne callback.