more fixes for react 0.12