Fixed bug in 'accept-line' handler