Bug fixes
Helper function to get norms