Fixed bug on takesurvey and fixed firefox bug