Fix bug in get statement.

Fixes #4