Fixed controller errors on variables page