Change wrong sequence to right sequence