corrected bugs in direction stimulation