fixed dynamic styling bugs