Fixed the issue on the public controller that was causing it to error out.