appendFirst bugfix