fixed key issue, closes #5