Fix JSON bug if no steps were added