fixed kind_of error for https #4