fix errors found in process of website debugging