use index 0 in the beginning

Signed-off-by: Jens Nyberg <jens.nyberg@gmail.com>