Bug when no casts present.