Avoid exception with single select