fixed normalization bug