fixed minor bug in constructor