Fix for incorrect prototype placeholders replace in nested collections