fixed type issue on linux