Fixed bug - (views undefined)