typo in the variable name TOPDIR