Fixes bug when aborting idea