Compiler: Fixes condition (#1311)

Fixes #1311.