Clean up some stupid errors