fixed closure minifcation issues