cast bug corrected