Fixed issue with non-int values as offsets and limits