fix bring to front issue #6