added firefox 22 compatibility for flex layouts