fixed handling of ranges
fixed [] attribute access