fixed bug in the views