Fixed errors when changing to inbox