$type undefined