Fixes errors in initialize method in order class.