Fixed a bug where needed to use float instead of int