misc -- fix bug