class cast exception bug fixed;