fix style location bug