Off-by-one error

In erlang list numbers starts from 1 not from 0.

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>