Fixes #16 mistaken assignment in if statement.