trying to fix dock bug