ugly compat fix