Create obsel bugfix

random alert(count) blocking the end of the function and the JSON
history creation