Adapt ifdef

Added the wrong ifdef before.