fixed decay bug and normalization compile error