Fixed error with datatype selection