Fixes #841 , pending changes are accepted on correct order