Fixing context bug in form