fix for ancestor composite indexes upon entity puts

a -> an