Fix for react 0.9