fix for reposition resize