fixing selection box mouse out event