another compat fix (credits nduong)