bug fix for minimizing and moving to share