Fixing child element not working bug