fix resolving nested type inside properties