fixed the ordering of method calls in set adapter