updating afs

removed illegal class cast