fixed native console to be called with the attached domain

@saary