Fix Type Error