delete comment source and fix directive index bug