bugfix for first run returning tuple instead of int