Fixed BoundsError if f[1] did not exists