fixed a bug with randint