Fixed runtime type error.