Fixed typeError