Fixed bug when float values were given in parameters