Fix for #224: Fractional radical simplification

Fix for issue #224.
The same here, we need to add an if statement.