Fix bug: Duplicate entries in while where a pool attr is not specified thros a NPE