fixed update of priority via id