Fixed styles being deleted if URL unchanged