fix for reflection error