Fixed variables not sending the right type to callback.