Use the right mode set when parsing list modes (fixes #55)