Fix when there are few pages then visible pages