Fixed signature of repeated buffer assignment

fixes #6