Fix for the previous commit. Create the next element and not the current