fixed browser freezing when calling reload method (value 0 was not
handeled)