Fixed user promotion when related entity id contains a 0 (#60)