Fix: Use stride instead of width