fixed console for undefined and other data types