Fixed behaviour runtime type error.