fix a bug associated with edge-offset