fix issue with upload dialog not appearing.