Fix #616

Goot catch. should be `(sizesmall[0]==0 || sizesmall[1]==0 || sizesmall[2]==0)`