fixed typo on isdir