fixed: Cannot call method 'html' of null