fixed problem with 'no method html in undefined'