fix error message on new tab - fix #60, fix #56