fix type problem