fixed inscan problem