Fixes a possible Error.