Removed boundary compensation at edges and corners.