Fixed for react 0.12.0