splitfunctions: bug fixed (head [])