Fix invalid order of cancel button