fix for an exception