Fixed and improved error validation handling on program locations and program methods