bug: incorect type guess