Updated RF_wrapper and fixed problem in the htmlbrowser_template