fixed handling of uint resource handle