Fix editing blocks on edge of map