Fix issue with code always being called. Invalid conditional.