fix type mistakes