fix type issue