fixed isRendered was set to true after unmounting the component