fix some random errors, also fixes commands being removed and never added again