fix scan issue