legend works in firefox