Convert where values to integer. Fixed #4.