trying to fix an exception