fix namespace errors on exceptions in trait property