fixed errors in offsets for centered scheme