Fixed the buggs in the adjustment-functions