set relativenumber only when it exists