fixed mouse enter and leave handling