fix bug in diff class using explode() instead of preg_split()