fix undefined dataType