bug fixes for overflowMode attached