Steps must be int or Java will crash

Fix #291