fixed a few patches