Attempted to fix expanding div bug