if defined fix