Fix issue: Cannot call method 'split' of undefined

Fix issue: TypeError: Cannot call method 'split' of undefined