fix file packager issue with closure