Fixing mouse over and mouse out events