Fixed setting ghostcells in window