try to resolve cast issue