Fixed style change bug