fixing fork/append bug