Probably fix for 64bit OS

Probably fixed error in 64bit operating systems
Removed some redundant lines of code