upgrade to be compatible with React 0.12