Solved problem with division by 0 on x86 based cpu architectures