Made some syntax errors that failed silently - closes #523