fixed dumb mistake around line 1343