Fixed type mistakes