Run shows no error, but output is always 0