Fixing bug with the dom of the views