fixed num type bugs