Fixes #22 add init to lists to fix out-of-bounds issue