Fixed the issue with the ID, now doesnt add the last step number in function