fixed wrong call in constructor