Fixed bugs inside views.

Signed-off-by: robertomorati <robertomorati@gmail.com>