fixed check in ice script