alternative fix to issue #1

Saves a few lines of code.