fixed some bugs with nondata types