few fixes for pledging