fix a typo
Improve isAbsolute check.