fixed normalization error in nsgfwin