Fixing problem with the split event