Removing faulty css attribute from being added