Fixes long arithmetics bug