now shows error message in cast fragment.