added workaround for linum and auto-complete modes