Bug fix in queening