Fixed implementation of respondToEvent to maintain context inside all constructors.