corrected a wrong comment for ghost_is_valid
fixed a typo