Fixing gain normalization