fix re-rendering of stack component

@gtrogers
@abersager