fix broken function bye