fixed bug with appened to none type