bug fix in constructor with provided pData argument