fixed some stuff
After hours of painstakingly looking for the cause of the error it turns out a semicolom was missing... again...