fixed norm bug