Fix form legend buggy on Safari