bug fix for 16 bits signed in populate.py