fixed the bug with random handle generation