- fix some issues with num vs int