Fixed accepted object types in glue function