fix mistakes type set to actual type