fix potential bug when cluster allocation fails;