fix bug where features where appending too many times