fixed minor bug to read static argument