Fixes issue #1044.

Added two missing brackets. Thanks to @chocomega for the discovery.