Fixed TypeError (integer argument expected, got float)