Changed reset initialization order