fixing pointer bug in thyra