Adjusted the Fix(?) for cleanupUnused

Fixed spelling mistake + moved getAlias under if statement