fix issue with multiple controller instantiations.