Fixed overflow issue and not hiding intellisense list in some cases