Fix bug when view have even numbers