Fixed mode when saving IDs

Test still fails. Not sure why since they are exactly the same.