bug fix in the constructor data_pattern instantiation