fixed display error that causes an error with drag and drop