fixed SERIOUS bug in construct.c