Fix the errors to make it able to run