Bugfix for first run returning tuple instead of int