The word can be spelled two ways, depending on the variety of English:
Both are correct; just use the one that fits the style or region you prefer!