Bug fix: Invalid input for edit and delete

Resolves #77