Bugfix with undefined slice input