fixed bug integer part