Fixed script for restyling