Fix weight/type switched, write text for debug