fix overlapping prompt issue