Fixed non-default constructor.