fixed a little compatibility