made fix that @hsunelson was too lazy to commit. Closes #1