Fixed bug in Stimulus constructor.