fix #if statement