Fixed class Group bug.

There was a problem if the first item was invisible in group which
caused the group to not work as expected. This should now be solved.