fix bug - float to int