Fixed 'long' assertion error