fix long from int