fixed [[ ]] on if stmt