fixed add a cast member functionality