fix to make it work in ff