Fixed error names and added bracets to variables