fixed invalid define guard