fixed typo
prevent possible exceptions