Found the issue was with slice