Fixed parseFloat and global issues