__toint__ called on prepare instead of every step

Signed-off-by: emre <emre@ini.ch>