Corrected the placement of an #if statement