fix for FF compatibility