fix silly mistake with guards