crude bug fix