fix ifdef order