fix makesys bug