Fixed small bug in p_norm call