Bugfix, casting to float is required