fix out of bounds (jelle)