bug fix: if the numer of elements to be generated suppose to be zero still face elements and nodes are generated. this is fixed now.