Fix issue when migrating to react 0.11.x

This fixes the issue