Fixes incorrect expression evaluation. Fixes gh-281

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>