fixed a bug where division was performed on string values.