Fix bug and inline directive markup