changing roles for ArrayList bug corrected (cast exception)