Fixed Errors. Hopefully it will work