fix bug in autolike