Fixed missing references in standalone mode

Fixes #665.