Small bug in new SQL fetch implementation.