Fix bug (respect n)