Fixed for bug: no active windows when tiling shows error